package com.siecomzg.transport;

import java.util.Timer;

/**
 * Created on 2017/1/19.
 */

public class CallbackTask {
    protected DeviceCallback callback;
    protected boolean isOnMain;
    protected Timer timer;

    public void setCallback(DeviceCallback callback) {
        this.callback = callback;
    }

    public void setOnMain(boolean onMain) {
        isOnMain = onMain;
    }

    public void setTimer(Timer timer) {
        this.timer = timer;
    }

    public DeviceCallback getCallback() {

        return callback;
    }

    public boolean isOnMain() {
        return isOnMain;
    }

    public Timer getTimer() {
        return timer;
    }
}
